<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>
<style>
#content{ min-height:600px;_height:600px;}


.table td{ text-align:right;}
.table .textLeft{ text-align:left;}
.table .count td{ text-align:right;}
.table .count .textCenter { text-align: center;}
.table .member-data-body .textLeft{ text-align:left;}
</style>
<script language="javascript">
	function changeDate(value){
		if(value == '2011'){
			$('#month')[0].options.length=0;
			$('#month')[0].options[0] = new Option('==请选择==','');
			$('#month')[0].options[1] = new Option('9','09');
			$('#month')[0].options[2] = new Option('10','10');
			$('#month')[0].options[3] = new Option('11','11');
			$('#month')[0].options[4] = new Option('12','12');
		}else{
			$('#month')[0].options.length=0;
			$('#month')[0].options[0] = new Option('==请选择==','');
			$('#month')[0].options[1] = new Option('1','01');
			$('#month')[0].options[2] = new Option('2','02');
			$('#month')[0].options[3] = new Option('3','03');
			$('#month')[0].options[4] = new Option('4','04');
			$('#month')[0].options[5] = new Option('5','05');
			$('#month')[0].options[6] = new Option('6','06');
			$('#month')[0].options[7] = new Option('7','07');
			$('#month')[0].options[8] = new Option('8','08');
			$('#month')[0].options[9] = new Option('9','09');
			$('#month')[0].options[10] = new Option('10','10');
			$('#month')[0].options[11] = new Option('11','11');
			$('#month')[0].options[12] = new Option('12','12');
		}
	}
	function endchangeDate(value){
		if(value == '2011'){
			$('#endmonth')[0].options.length=0;
			$('#endmonth')[0].options[0] = new Option('==请选择==','');
			$('#endmonth')[0].options[1] = new Option('9','09');
			$('#endmonth')[0].options[2] = new Option('10','10');
			$('#endmonth')[0].options[3] = new Option('11','11');
			$('#endmonth')[0].options[4] = new Option('12','12');
		}else{
			$('#endmonth')[0].options.length=0;
			$('#endmonth')[0].options[0] = new Option('==请选择==','');
			$('#endmonth')[0].options[1] = new Option('1','01');
			$('#endmonth')[0].options[2] = new Option('2','02');
			$('#endmonth')[0].options[3] = new Option('3','03');
			$('#endmonth')[0].options[4] = new Option('4','04');
			$('#endmonth')[0].options[5] = new Option('5','05');
			$('#endmonth')[0].options[6] = new Option('6','06');
			$('#endmonth')[0].options[7] = new Option('7','07');
			$('#endmonth')[0].options[8] = new Option('8','08');
			$('#endmonth')[0].options[9] = new Option('9','09');
			$('#endmonth')[0].options[10] = new Option('10','10');
			$('#endmonth')[0].options[11] = new Option('11','11');
			$('#endmonth')[0].options[12] = new Option('12','12');
		}
	}</script>
</head>

<body style="overflow:auto;">
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：行业数据</div>
			<div id="topOtherMenu"></div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl(array('action'=>'index'));?>">
					<div id="timeRange">
					<span>初始日期</span>：
					<select name="year" id="year" onchange="return changeDate(this.value);">
					  <option value="">==请选择==</option>
					  <option  value="2011">2011</option>
					  <option  value="2012">2012</option>
					</select>
					年
					<select name="month" id="month">

					</select>
					月&nbsp;&nbsp;

					<span>结束日期</span>：
					<select name="endyear" id="endyear" onchange="return endchangeDate(this.value);">
					  <option value="">==请选择==</option>
					  <option  value="2011">2011</option>
					  <option  value="2012">2012</option>
					</select>
					年
					<select name="endmonth" id="endmonth">

					</select>
					月
					<br /><br />
					<span>项目筛选：</span>
					<span>
					<?php
						$i  = 0;
						foreach($this->productArr as $item):
						$i++;
					?>
					<input name="product[]" type="checkbox" value="<?php echo $item['code'];?>" checked="checked" /> <?php echo $item['name'];?> <?php if($i%7 == 0){echo "<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";}?>
					 
					<?php endforeach;?>
					</span>
					<br />

					<span>平台筛选：</span>
					<input name="osname[]" type="checkbox" value="symbian" checked="checked" /> 
					symbian
					<input name="osname[]" type="checkbox" value="iphone" checked="checked" /> 
					iphone
					<input name="osname[]" type="checkbox" value="android" checked="checked" /> 
					android
					<input name="osname[]" type="checkbox" value="ipad" checked="checked" /> 
					ipad
					<input name="osname[]" type="checkbox" value="windowsphone" checked="checked" /> 
					windowsphone
					<br /><br />
						<input name="search" type="submit" id="search" value="下一步" class="button" />							
					</div>
			  </form>
			  <?php if(!empty($this->countarr)):?>
			  	<form id="se" name="se" method="post" action="<?php echo $this->projectUrl(array('action'=>'export'));?>">
					<textarea style="display:none" name="tableValue" id="tableValue"><?php echo $this->table;?></textarea>
					<input style="display:none" name="fName" id="fName" type="text" value="<?php echo $this->fileName;?>" />
					<input name="search" type="submit" id="searcha" value="下载" class="button" />
				</form>
			  <?php endif;?>
			</div>
			<div id="content">
			<?php if(!empty($this->countarr)):?>
					<table width="100%" class="table">
						<tr class="subject">                        
						  <td class="checkBoxTd">月份</td>
						  <td>客单价</td>
						  <td> 启动到订单转化率(人次)</td>
						  <td> 日人均启动</td>
						  <td> 订单量</td>
						  <td> 激活量</td>
					  </tr>
					  <?php foreach($this->firarr as $key=>$val):?>
					  <tr style="color:#FF0000">
						  	<td><?php echo $key;?></td>
						  	<td><?php echo $val['onepOrder'];?></td>
							<td><?php echo $val['bootOnper'];?>%</td>
							<td><?php echo $val['onepBoot'];?></td>
							<td><?php echo $val['okOrderNum'];?></td>
							<td><?php echo $val['installNum'];?></td>
					  </tr>
						  <?php foreach($this->countarr[$key] as $k=>$item):?>
						  <tr class="cc">
								<td><?php echo $k;?></td>
								<td><?php echo $item['onepOrder'];?></td>
								<td><?php echo $item['bootOnper'];?>%</td>
								<td><?php echo $item['onepBoot'];?></td>
								<td><?php echo $item['okOrderNum'];?></td>
								<td><?php echo $item['installNum'];?></td>
						  </tr>					  
						  <?php endforeach;?>
						  
					  <?php endforeach;?>
				  </table>	
			<?php endif;?>	  	  
			</div>
		</div>
	</div>
</body>
</html>